'''
@stocks_information: 获取多只A股公司的股票数据
参考
    1）https://zhuanlan.zhihu.com/p/393083394，
    2）https://pypi.org/project/akshare/，
    3）https://mp.weixin.qq.com/s?__biz=MzI2NjY5NzI0NA==&mid=2247501026&idx=1&sn=378292e5435b7ef5eede36192812da3b&scene=21#wechat_redirect
'''
import akshare as ak

'''获取A股公司列表数据'''
#@Deprecated  akshare接口报错
def get_aStock_code():
    '''
    @param: None
    @return: dataframe
    '''
    stock_info_a_code_name_df = ak.stock_info_a_code_name()
    return stock_info_a_code_name_df

'''获取A股上市公司实时行情数据'''
def get_aStock_zh_a_spot():
    '''
    @param: None
    @return: dataframe
    '''
    stock_zh_a_spot_df = ak.stock_zh_a_spot()  # 新浪财经规定爬取数据要有时间间隔（差不多2分钟）
    return stock_zh_a_spot_df












